package pers.wensheng.patterns.structural_pattern.adapter_pattern.class_adapter_pattern.entity;

/**
 * TF卡的具体实现类
 */
public class TFCardImpl implements TFCard {
    /**
     * 读取TF卡内容
     *
     * @return
     */
    @Override
    public String readTF() {
        return "TF卡读取数据：hello TFCard";
    }

    /**
     * 往TF卡里面写内容
     */
    @Override
    public void writeTF(String msg) {
        System.out.println("TF卡写数据："+msg);
    }
}
